/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.zb.hms.base.util.dateUtil;

import java.text.SimpleDateFormat;
import java.util.Date;
import org.springframework.stereotype.Component;

/**
 * @Description 时间信息转换
 * @author zb
 * @datetime 2017-7-30 14:13
 * @version V1.0
 */
@Component
public class DateFormat {
	  public static final String ISO="  yyyy-MM-dd  HH:mm:ss";
	  public static final String CHINA=" yyyy年MM月dd日  HH时mm分ss秒";
      public static String getTime(String format){ 
		 return new SimpleDateFormat(format).format(new Date());
      }
        public static String getTime(String format,Date date){ 
		 return new SimpleDateFormat(format).format(date);
      }
}
